<?
  set_include_path('./'.PATH_SEPARATOR.dirname(__FILE__)."/../");
  include_once "../mode/group/gfriend.php";
  try{
  $rows=tbhelper::produce("gfriend");
  $db = new db("mysql:host=localhost;dbname=test1","root","kaixin9999");
  //echo get_class($rows);
  //print_r($rows);
  $gfriendc=new gfriendc(&$db,1,2);
  //$gfriendc->delete();
   //$gfriendc->apply();
   echo $gfriendc->getListNum(gfriendc::FRIEND);
  echo $gfriendc->state;
  }catch(Error $er){
	$er->recode();
  }catch(Exception $er){
	echo $er->getMessage();
}
?>
